package com.sds.system.modules;

import com.google.inject.servlet.ServletModule;
import com.sds.nlp.NLPModule;
import com.sds.prolog.PrologModule;
import com.sds.system.services.FileManager;
import com.sds.system.servlets.FileServlet;
import com.sun.jersey.guice.spi.container.servlet.GuiceContainer;

public class AppModule extends ServletModule {
    @Override
    protected void configureServlets() {
        super.configureServlets();

        bind(FileManager.class).asEagerSingleton();

        serve("/f/*").with(FileServlet.class);
        serve("/rest/*").with(GuiceContainer.class);

        install(new PrologModule());
//        install(new NLPModule());
    }
}
